//---------------------------------------------------------------------------

#ifndef Unit2H
#define Unit2H
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <Buttons.hpp>
#include "PC.cpp"
//---------------------------------------------------------------------------
class TForm2 : public TForm
{
__published:	// IDE-managed Components
        TRadioButton *rb1;
        TRadioButton *rb2;
        TBitBtn *btn1;
        TBitBtn *btn2;
        TButton *btn3;
        TLabel *lbl1;
        TLabel *lbl2;
        TLabel *lbl3;
        TLabel *lbl4;
        TLabel *lbl6;
        TLabel *lbl7;
        TEdit *edtip;
        TEdit *edtduankou;
        TEdit *edtmac;
        TEdit *edtyanma;
        TEdit *edtzhujiming;
        TEdit *edtbeizhu;
        void __fastcall btn1Click(TObject *Sender);
        void __fastcall rb1Click(TObject *Sender);
        void __fastcall rb2Click(TObject *Sender);
        void __fastcall btn2Click(TObject *Sender);
        void __fastcall FormShow(TObject *Sender);
        void __fastcall btn3Click(TObject *Sender);
private:	// User declarations
        bool __fastcall CheckIP(AnsiString str);
public:		// User declarations
        __fastcall TForm2(TComponent* Owner);
public:
        bool IsAdd;
        PC *pc;
};
//---------------------------------------------------------------------------
extern PACKAGE TForm2 *Form2;
//---------------------------------------------------------------------------
#endif
